Skip to content

feature: add reflog viewer and Undo Last Operation to repository command palette - #2875

Open
bertyhell wants to merge 1 commit into
sourcegit-scm:developfrom
bertyhell:feature/reflog-and-undo
Open

bertyhell wants to merge 1 commit into
sourcegit-scm:developfrom
bertyhell:feature/reflog-and-undo

Conversation

@bertyhell

@bertyhell bertyhell commented Nov 9, 2026 •

Copy link
Copy Markdown
image image image

Adds two entries to the repository command palette:

  • Reflog: searchable list of HEAD reflog entries, with "Reset current branch to here...".
  • Undo Last Operation: opens the Reset popup targeting the previous HEAD from the reflog, showing which operation is being undone. Checkouts and no-op entries are refused with a notification.

🤖 Generated with Claude Code

…mmand palette

Adds a `Reflog` sub command palette that lists the reflog entries of HEAD
(short SHA, `HEAD@{n}`, reflog message and relative time). Pressing `Enter`
or clicking an entry navigates to that commit in histories, and the reset
button of an entry opens the existing `Reset` popup prefilled with it.

Adds an `Undo Last Operation` command that opens the existing `Reset` popup
targeting `HEAD@{1}`, showing the reflog message of the operation being
undone. It is hidden for bare repositories and while a merge/rebase/
cherry-pick/revert is in progress, and refuses (with a notification) when
there is no `HEAD@{1}`, when `HEAD@{1}` is the same commit as HEAD, or when
the last operation is a checkout (resetting is not the way to undo it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KCxH1zwDXLd9kfAAkcf6PZ

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants